﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ElingOA6_Admin_DSJCJ.Common;

namespace ElingOA6_Admin_DSJCJ.Models
{
    public static class CommonCode
    {
        /// <summary>
        /// 获取通用代码数据
        /// </summary>
        /// <param name="cloNo"></param>
        /// <returns></returns>
        public static List<Model.SysBasicCodeName> GetCodeList(string cloNo)
        {
            List<Model.SysBasicCodeName> list = new List<Model.SysBasicCodeName>();
            BLL.SysBasicCodeName codeName = new BLL.SysBasicCodeName();
            return codeName.GetListByClsNo(cloNo, GlobalConstant.ENTITYNO);
        }


        /// <summary>
        /// 
        /// </summary>
        /// <param name="fEntityNo"></param>
        /// <returns></returns>
        public static List<Model.PaperCls> GetPaperList(string fEntityNo) 
        {

            List<Model.PaperCls> list = new List<Model.PaperCls>();
            BLL.PaperCls paperCls = new BLL.PaperCls();
            return paperCls.GetListByClsNo(GlobalConstant.ENTITYNO);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="entityNo"></param>
        /// <returns></returns>
        public static List<Model.ItemCls> GetItemList(string entityNo)
        {

            List<Model.ItemCls> list = new List<Model.ItemCls>();
            BLL.ItemCls itemCls = new BLL.ItemCls();
            return itemCls.GetListByClsNo(GlobalConstant.ENTITYNO);
        }


    }
}